<%-- 
    Document   : DangNhap
    Created on : Jun 7, 2011, 12:00:29 AM
    Author     : Hong Lam
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <style type="text/css">
 	.hidden{
		visibility:hidden;
		position:absolute;
	}
	.visible{
		visibility:visible;
	}
 </style>
 <script type="text/javascript">
 	function check(){
		var form = document.formlogin;
		if(form.vb_login_username.value.length==0){
			document.getElementById("userErr").className="visible";
			document.getElementById("userOk").className="hidden";
			result = false;
		}else{
			document.getElementById("userErr").className="hidden";
			document.getElementById("userOk").className="visible";
		}

		if(form.vb_login_password.value.length==0){
			document.getElementById("pssErr").className="visible";
			document.getElementById("pssOk").className="hidden";
			result = false;
		}else{
			document.getElementById("pssErr").className="hidden";
			document.getElementById("pssOk").className="visible";
		}
		return result;
	}
 </script>
<div align="left">


			<form id="formlogin" name="formlogin" method="get" action="" onSubmit="return check();">

			<!-- permission error message - user not logged in -->

			<fieldset class="fieldset">
				<legend>Log in</legend>
				<table cellspacing="3" cellpadding="0" border="0" align="center">
				<tbody><tr>
					<td width="300">User Name:<br><input type="text" size="50" id="vb_login_username" name="vb_login_username" class="bginput"></td>
					<td width="48" align="center" valign="bottom"><img src="/WebsiteBanHang/images/giohang/source/succ.jpg" name="userOk" width="23" height="23" align="bottom" class="hidden" id="userOk"><img src="/WebsiteBanHang/images/giohang/source/false.jpg" name="userErr" width="21" height="22" align="bottom" class="hidden" id="userErr"></td>
				</tr>
				<tr>
					<td>Password:<br><input type="password" size="50" id="vb_login_password" name="vb_login_password" class="bginput"></td>
					<td width="48" align="center" valign="bottom"><img src="/WebsiteBanHang/images/giohang/source/succ.jpg" name="pssOk" width="23" height="23" align="middle" class="hidden" id="pssOk"><img src="/WebsiteBanHang/images/giohang/source/false.jpg" name="pssErr" width="21" height="22" align="middle" class="hidden" id="pssErr"></td>
				</tr>
				<tr>
					<td>
						<span style="float:right"><a href="login.php?do=lostpw">Forgotten Your Password?</a></span>
						<label for="cb_cookieuser"><input type="checkbox" id="cb_cookieuser" value="1" name="cookieuser">Remember Me?</label>
					</td>
					<td width="48" rowspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="right">
						<input type="submit" value="Log in" class="button">
						<input type="reset"value="Reset Fields" class="button">
					</td>
				  </tr>
				</tbody>
				</table>
			</fieldset>
  </form>

			<!-- / permission error message - user not logged in -->


</div>
